<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "shbb_account_tmp".
 *
 * @property integer $id
 * @property integer $person_id
 * @property string $account_tmp
 * @property string $psw_tmp
 *
 * @property ShbbPerson $person
 */
class AccountTmp extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'shbb_account_tmp';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['person_id'], 'integer'],
            [['account_tmp', 'psw_tmp'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'person_id' => 'Person ID',
            'account_tmp' => 'Account Tmp',
            'psw_tmp' => 'Psw Tmp',
        ];
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getPerson()
    {
        return $this->hasOne(ShbbPerson::className(), ['id' => 'person_id']);
    }
}
